package cn.com.yangzhenyu.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableEurekaClient
@EnableFeignClients
public class DemoController {

    @Autowired
    private ServiceHelloFeignClient serviceHelloFeignClient;

    @RequestMapping("call")
    public String call(){
        return "helle:----"+serviceHelloFeignClient.helloController();
    }
}
